package com.hsd.znsh.service;

import com.hsd.znsh.entity.Farm;
import com.hsd.znsh.pojo.output.FarmVO;
import com.hsd.znsh.pojo.query.FarmQuery;
import org.springframework.data.domain.Pageable;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;
import java.util.Map;

public interface FarmService extends BaseService {

    long getFarmListTotalPages(FarmQuery farmQuery,Integer userId);

    List<FarmVO> getFarmList(Pageable pageable,FarmQuery farmQuery, Integer userId);

    List<FarmVO> getFarmList(FarmQuery farmQuery, Integer userId);

    FarmVO getFarmInfo(Integer id);

    List<Map<String,Object>> getFarmRecord(Integer farmTypeId, Integer totalTime);

    List<FarmVO> getFarmListByBatchId(Integer batchId,Integer farmTypeId);

    Farm addFarm(MultipartFile multipartFile,Farm farm,Integer userId);

    void deleteFarm(Integer id);
}
